package com.wind.taobao.api.picture.rest
{
	import com.wind.taobao.api.picture.convert.PictureCategoryConvert;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.picture.category.get Response
	 * @author fxy
	 *
	 */
	public class PictureCategoryGetResponse extends TaobaoResponse
	{
		public var pictureCategories:ArrayCollection;

		public function PictureCategoryGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initPictureCagegories();
		}

		private function initPictureCagegories():void
		{
			if (body != null && this.isSuccess)
			{
				if (this.format == "xml")
				{
					//暂未实现
				}
				else
				{
					if (body["rsp"].hasOwnProperty("picture_categories"))
						pictureCategories=PictureCategoryConvert.convertPictureCategorys(body["rsp"]["picture_categories"]);
				}
			}
		}

	}
}